.class Lcom/waiqin365/lightapp/kehu/hd;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/16 v5, 0x8

    const/4 v4, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0, v4}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->a(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/a/a/bh;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/bh;->b()Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/bh;->h:Ljava/lang/String;

    const/4 v3, 0x1

    invoke-static {v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v2

    invoke-static {v1, v2}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->a(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;I)I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->a(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->b(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)I

    move-result v2

    if-lt v1, v2, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    :cond_1
    :goto_1
    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/bh;->i:Ljava/util/ArrayList;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->d(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/bh;->i:Ljava/util/ArrayList;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->b(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->a(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->f(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/kehu/b/ap;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->e(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/ap;->a(Ljava/util/ArrayList;)V

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->e(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->g(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->h(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    :goto_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->f(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/kehu/b/ap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/ap;->notifyDataSetChanged()V

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->d(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Ljava/lang/String;)V

    :goto_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->dismissProgressDialog()V

    goto/16 :goto_0

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->h()Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    goto/16 :goto_1

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->e(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/bh;->i:Ljava/util/ArrayList;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->b(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_2

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->g(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->h(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->h(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    const v3, 0x7f0805d3

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->i(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    goto/16 :goto_4

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/a/a/aq;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/aq;->b()Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/aq;->a()Ljava/util/ArrayList;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->c(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->f(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/kehu/b/ap;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->j(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/ap;->b(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hd;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;->f(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeForVisitActivity;)Lcom/waiqin365/lightapp/kehu/b/ap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/ap;->notifyDataSetChanged()V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x9 -> :sswitch_1
        0x13 -> :sswitch_0
    .end sparse-switch
.end method
